package com.wdata.base.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * ClassName Json
 * <p>Description JSON工具类</p>
 *
 * @author Yat
 * Date 2024年1月31日, 0031 15:13
 * version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Json implements Serializable {

    private static final long serialVersionUID = -4540167775871168514L;

    private boolean success = false;
    private String msg = "";
    private Object myobject;
    private String sessionId = "";
    private boolean verifySessionId = false;
    private String flag = "";
    //分页数量
    private int count = 0;
    //对象
    private Object data;
    private int code;
    private String url;
    private String loseSession;

    public Json(boolean success, Object myobject, String sessionId, int code) {
        this.success = success;
        this.msg = "";
        this.myobject = myobject;
        this.sessionId = sessionId;
        this.flag = "";
        this.code = code;
    }

}
